.cartList {
    width: 1200px;
    min-width: 100%;
    height: auto;
    padding-bottom: 50px;
    display: grid;
    place-items: center;
    background-color: #f5f5f5;

    .bread {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        padding-left: 160px;
    }

    .cartBoxs {
        width: 1200px;
        background-color: white;
        border-radius: 6px;
        margin: 20px 0;

        .listHeader {
            width: 100%;
            height: 70px;
            display: grid;
            grid-template-columns: 1.5fr 5fr 2fr 2fr 2fr 1.5fr;
            align-items: center;
            justify-items: center;
            border-bottom: 1px solid #f5f5f5;

            input {
                margin-right: 5px;
            }

            span {
                font-size: 16px;
                color: #666;
                text-align: center;

                &:nth-child(2) {
                    text-align: left;
                    padding-left: 20px;
                }
            }
        }

        .cartGood {
            width: 100%;
            min-height: 120px;
            display: grid;
            grid-template-columns: 1.5fr 5fr 2fr 2fr 2fr 1.5fr;
            align-items: center;
            border-bottom: 1px solid #f5f5f5;
            padding: 20px 0;

            span:first-child {
                display: grid;

            }

            .goodInfo {
                display: flex;
                justify-content: flex-start;
                align-items: center;
                gap: 10px;
                padding-left: 20px;

                img {
                    width: 100px;
                    height: 100px;
                    border-radius: 4px;
                }

                span {
                    font-size: 14px;
                    color: #666;
                }
            }

            .price {
                text-align: center;
                color: #cf4444;
                font-size: 16px;
            }

            .count {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 5px;

                span {
                    width: 30px;
                    height: 30px;
                    display: grid;
                    place-items: center;
                    border: 1px solid #e4e4e4;
                    cursor: pointer;

                    &:nth-child(2) {
                        width: 50px;
                        cursor: text;
                    }
                }
            }

            .total {
                text-align: center;
                color: #cf4444;
                font-size: 16px;
            }

            .action {
                text-align: center;
                color: #27ba9b;
                cursor: pointer;
            }
        }


    }

    .cartFeatures {
        width: 1200px;
        height: 80px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        background-color: white;
        border-radius: 4px;


        .left {
            display: flex;
            align-items: center;
            gap: 20px;

            input[type="checkbox"] {
                margin-right: 5px;
            }

            a {
                color: #999;
                font-size: 16px;
                cursor: pointer;

                &:hover {
                    color: #27ba9b;
                }
            }
        }

        .right {
            display: flex;
            align-items: center;
            gap: 20px;

            span {
                font-size: 16px;
                color: #999;

                em {
                    color: #cf4444;
                    font-style: normal;
                    font-size: 16px;
                    margin: 0 4px;
                }
            }

            button {
                width: 110px;
                height: 50px;
                background-color: #27ba9b;
                color: white;
                border: none;
                border-radius: 4px;
                cursor: pointer;
                font-size: 16px;

                &:hover {
                    background-color: #1ea385;
                }

                &:disabled {
                    background-color: #ccc;
                    cursor: not-allowed;
                }
            }
        }
    }

    .guessLike {

        width: 1200px;
        background-color: white;
        border-radius: 4px;
        margin-top: 20px;
        padding: 30px;

        .title {
            h3 {
                font-size: 22px;
                font-weight: 400;
                color: #333;
                margin-bottom: 20px;

                &::before {
                    content: '';
                    display: inline-block;
                    width: 4px;
                    height: 22px;
                    background-color: #27ba9b;
                    vertical-align: bottom;
                    margin-right: 10px;
                }
            }
        }

        .goodsList {

            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;

            .goodItem {
                cursor: pointer;
                transition: all 0.3s;
                display: grid;
                place-items: center;

                &:hover {
                    transform: translateY(-3px);
                    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
                }

                img {
                    width: 200px;
                    height: 200px;
                    object-fit: cover;
                }

                .name,
                .desc {
                    width: 200px;
                    text-align: center;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }

                .name {
                    font-size: 16px;
                    color: #333;
                    margin: 10px 0;
                }

                .desc {
                    font-size: 14px;
                    color: #999;
                    margin-bottom: 10px;
                }

                .price {
                    font-size: 20px;
                    color: #cf4444;
                    text-align: center;
                }
            }
        }
    }
}

// 更新原有样式或新增以下规则
.countInput {
    width: 60px; // 适当加宽
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
    padding: 4px;
    font-size: 14px;
    transition: border-color 0.3s;

    &:hover {
        border-color: #1890ff;
    }

    &:focus {
        outline: none;
        border-color: #1890ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    }

    // 统一隐藏旋转按钮
    -moz-appearance: textfield;

    &::-webkit-outer-spin-button,
    &::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
}